package md5;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Size;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
public class User {

    @Size
    private String name;
    private Integer age;
    private String id;


    void hahaha() {
        System.out.println("user hahaha");
    }
//    @Override
//    public String toString(){
//        return "age="+this.age+"...."+"name="+this.name;
//    }
}
